<?php

// CORS
// 允许 $originarr 数组内的 域名跨域访问
header('Access-Control-Allow-Origin:*');
// 响应类型
header('Access-Control-Allow-Methods:POST,GET,PUT,DELETE');
// 响应头设置
header('Access-Control-Allow-Headers:x-requested-with,Content-Type,X-CSRF-Token');

$mysqli = new Mysqli("localhost", "root", "root", "db_yuedu");

if ($mysqli->connect_errno) {
    die();
}
